package cn.explink.dop.entity.order;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * 店面业务人员关系实体
 * 
 * @author firefly 2015-2-28 14:50
 *
 */
@Entity
@Table(name = "bd_sto_del")
public class StoDelEntity {

	/** 主键 */
	private long id;
	/** 店面主键 */
	private long restaurantId;
	/** 业务人员主键 */
	private long deliverymanId;
	/** 店面名称 */
	private String restaurantName;
	/** 业务人员名称 */
	private String deliverymanName;

	@Id
	@Column(name = "id", nullable = false, length = 11)
	public long getId() {
		return this.id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name = "restaurant_id", nullable = true, length = 11)
	public long getRestaurantId() {
		return this.restaurantId;
	}

	public void setRestaurantId(long restaurantId) {
		this.restaurantId = restaurantId;
	}

	@Column(name = "deliveryman_id", nullable = true, length = 11)
	public long getDeliverymanId() {
		return this.deliverymanId;
	}

	public void setDeliverymanId(long deliverymanId) {
		this.deliverymanId = deliverymanId;
	}

	@Transient
	public String getRestaurantName() {
		return this.restaurantName;
	}

	public void setRestaurantName(String restaurantName) {
		this.restaurantName = restaurantName;
	}

	@Transient
	public String getDeliverymanName() {
		return this.deliverymanName;
	}

	public void setDeliverymanName(String deliverymanName) {
		this.deliverymanName = deliverymanName;
	}
}
